package com.miracle.system.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.miracle.system.base.domain.BaseEntity;
import org.springframework.data.annotation.Transient;

import java.util.Date;

/**
 * @author ：miracle.cui
 * @description：TODO
 * @date ：2020/9/27 9:50
 */
public class SysOperatelog extends BaseEntity {

    /**
     * 日志ID
     */
    private Integer logId;

    /**
     * 操作类型
     */
    private String operateType;

    /**
     * 操作人
     */
    private Integer userId;

    /**
     * 操作说明
     */
    private String logDesc;

    /**
     * 操作时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date operateTime;

    /**
     * 记录ID
     */
    private Integer orderId;

    /**
     * 操作单号
     */
    private String orderCode;

    /**
     * 资源ID
     */
    private Integer resourceId;

    /**
     * 模块类型
     */
    private String modelType;

    @Transient
    private String userName;

    public Integer getLogId() {
        return logId;
    }

    public void setLogId(Integer logId) {
        this.logId = logId;
    }

    public String getOperateType() {
        return operateType;
    }

    public void setOperateType(String operateType) {
        this.operateType = operateType;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getLogDesc() {
        return logDesc;
    }

    public void setLogDesc(String logDesc) {
        this.logDesc = logDesc;
    }

    public Date getOperateTime() {
        return operateTime;
    }

    public void setOperateTime(Date operateTime) {
        this.operateTime = operateTime;
    }

    public Integer getOrderId() {
        return orderId;
    }

    public void setOrderId(Integer orderId) {
        this.orderId = orderId;
    }

    public String getOrderCode() {
        return orderCode;
    }

    public void setOrderCode(String orderCode) {
        this.orderCode = orderCode;
    }

    public Integer getResourceId() {
        return resourceId;
    }

    public void setResourceId(Integer resourceId) {
        this.resourceId = resourceId;
    }

    public String getModelType() {
        return modelType;
    }

    public void setModelType(String modelType) {
        this.modelType = modelType;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }
}
